﻿@model IdentityServer.Models.LoginViewModel

<div class="login-container">
    <partial name="_ValidationSummary" />
    @if (Model.EnableLocalLogin)
    {
    <div class="middle mx-auto h-75 w-75">
        <div class="row">
            <div class="col col-12 col-md-6">
                <img class="rounded img-fluid" src="~/images/login.png" alt="小站工作室">
            </div>
            <div class="col col-12 col-md-6">
                <div class="login">
                    <h5 class="font-weight-bold">服务到家后台登录</h5>
                    <p class="font-weight-light font2">高效·周到·便捷</p>
                    <form asp-controller="Account" asp-action="Login" method="post">
                        <input type="hidden" asp-for="ReturnUrl" />
                        <div class="form-group">
                            <label for="username" class="sr-only">账号:</label>
                            <input type="text" class="form-control" asp-for="Username" placeholder="账号">
                        </div>
                        <div class="form-group">
                            <label for="pwd" class="sr-only">密码:</label>
                            <input type="password" class="form-control" asp-for="Password" placeholder="密码">
                        </div>
                        @if (Model.AllowRememberLogin)
                            {
                        <div class="custom-control custom-checkbox">
                            <input type="checkbox" class="custom-control-input" id="Remember" asp-for="RememberLogin">
                            <label class="custom-control-label" for="Remember" asp-for="RememberLogin">记住用户名</label>
                        </div>
                            }
                        @*<div class="custom-control custom-checkbox">
                                <input type="checkbox" class="custom-control-input" asp-for="RememberLogin">
                                <label class="custom-control-label font-weight-light small" asp-for="RememberLogin">记住用户名</label>
                            </div>*@
                        <br>
                        <button type="submit" name="button" value="login" class="btn btn-primary btn-block w-75 mx-auto">登 录</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    }

</div>

